//导入request.js工具
import request from "@/utils/request";
//调用注册接口的函数

export const addInformation = (form) => {
  return request.post("/employee/addinformation", form);
};
export const searchInformationTotal = () => {
  return request.post("/employee/total");
};
export const searchInformation = (page, size, select, value) => {
  return request.post(
    "/employee/searchall",
    {},
    {
      params: {
        page: page,
        size: size,
        select: select,
        value: value,
      },
    }
  );
};
export const changeinformation = (form) => {
  return request.put("/employee/changeinformation", form);
};
export const deleteInformation = (id) => {
  return request.delete("/employee/deleteinformation", {
    params: {
      id: id,
    },
  });
};
